package cn.jhz.learn.blog.service.security.resource.file.impl;

import cn.jhz.learn.blog.service.security.resource.file.FilePointCut;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public abstract class FilePointCutImpl implements FilePointCut {

    @Pointcut(value = "execution(* cn.jhz.learn.blog.service.core.auth.file.ConsoleFileService.batchUpload(java.util.List<org.springframework.web.multipart.MultipartFile>)) && args(files)", argNames = "files")
    @Override
    public void batchUpload(List<MultipartFile> files) {}

    @Pointcut(value = "execution(* cn.jhz.learn.blog.service.core.auth.file.ConsoleFileService.batchUploadPicture(java.util.List<org.springframework.web.multipart.MultipartFile>)) && args(files)", argNames = "files")
    @Override
    public void batchUploadPicture(List<MultipartFile> files) {}
}
